{OVERALL_HEADER}
<table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="200" valign="top">
	IF("{LOGGEDIN}"=="0"){<a href="{SITE_URL}signup.php">{LANG_JOIN}</a><br><a href="{SITE_URL}login.php">{LANG_LOGIN}</a><br>{:IF}
	IF("{LOGGEDIN}"=="1"){<a href="{SITE_URL}editprofile.php">{LANG_EDITPROFILE}</a><br>{:IF}
      <a href="{SITE_URL}add_story.php">{LANG_SUBMITS}</a><br>
	IF("{LOGGEDIN}"=="1"){<a href="{SITE_URL}logout.php">{LANG_LOGOUT}</a><br>{:IF}
      <br>
	  <strong>{LANG_CATS}</strong><br>
      <br>

      {LOOP: CATS}
	  IF("{CATS.parent_id}"!="0"){&nbsp;&nbsp;{:IF}
	  <a href="{CATS.cat_url}">{CATS.cat_title}</a><br>
	  {/LOOP: CATS}
	  <br>
    <br></td>
    <td valign="top">     
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	  <tr>
      <td width="25"><a href="{XML_URL}"><img src="{SITE_URL}templates/{TPL_NAME}/images/feed_icon.gif" width="20" height="20" border="0"></a></td>
      <td><span class="pagetitle">{CAT_TITLE}</span></td>
	  <td width="350">
	  <div id="tabsB">
	  <ul>
<li IF("{MODE}"=="popular"){id="current"{:IF}><a href="{POPULAR_LINK}"><span>{LANG_POPS}</span></a></li>
<li IF("{MODE}"=="upcoming"){id="current"{:IF}><a href="{UPCOMING_LINK}"><span>{LANG_UPS}</span></a></li>
</ul>
</div>
	  </td>
	  </tr>
	  <tr><td height="1" bgcolor="#dedede"></td><td height="1" bgcolor="#dedede"></td><td height="1" bgcolor="#dedede"></td></tr>
	  </table>
      
      <br>
    <br>
	{LOOP: STORIES}
	<table width="100%" cellpadding="0" cellspacing="0" style="padding-bottom:20px;">
	<tr id="storyb{STORIES.story_id}" IF("{STORIES.buried}"=="1"){style="filter:Alpha(Opacity=80);opacity:.2;" disabled{:IF}><td width="65" align="left" valign="top"><table border="0" cellspacing="0" cellpadding="0" class="digbox"><tr><td><table width="52" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td align="center" height="28" valign="bottom"><div class="digs" id="numdigs{STORIES.story_id}">{STORIES.story_digs}</div></td>
      </tr>
	  <tr>
	  <td height="24" align="center" valign="middle"><span class="digg">{LANG_DIGGS}</span></td>
	  </tr>
      <tr>
        <td height="2"></td>
      </tr>
      <tr>
           <td height="25" align="center"><div class="digit" id="digbut{STORIES.story_id}">IF("{STORIES.dugg}"=="1"){{LANG_DUGG}{:IF}
		   IF("{STORIES.dugg}"=="0"){<a href="javascript:dig({STORIES.story_id});">{LANG_DIGIT}</a>{:IF}</div></td>
      </tr>
    </table></td></tr></table></td>
	<td valign="top">
	<div>
	  <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td valign="top"><a href="{STORIES.story_url}">{STORIES.story_title}</a></td>
        </tr>
		<tr>
		<td height="20"><table border="0" cellpadding="0" cellspacing="0">
		  <tr><td width="21"><img src="{SITE_URL}{STORIES.avatar}"></td>
		  <td><span class="subline">{LANG_SUBBY} <a href="{STORIES.user_link}">{STORIES.user_name}</a> {STORIES.ago} {LANG_AGO} (via {STORIES.domain})</span></td></tr></table></td>
		</tr>
        <tr>
          <td valign="top">{STORIES.story_desc}</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td valign="bottom"><span class="bottomlinks"><a href="{STORIES.story_link}#comments">{STORIES.story_comments} {LANG_COMS}</a> - <a href="{STORIES.story_link}">{LANG_MORE}</a> - <a href="javascript:bury_story({STORIES.story_id});">{LANG_BURY}</a> &nbsp; {LANG_TOPIC}: <a href="{STORIES.cat_link}">{STORIES.cat_title}</a></span></td>
        </tr>
      </table></div></td>
	  IF("{STORIES.story_thumb}"!=""){<td width="90" valign="top" align="right"><a href="{STORIES.story_url}"><img src="{SITE_URL}images/thumbs/{STORIES.story_thumb}.jpg" alt="Watch Video" width="86" height="72" border="0"></a></td>
	  {:IF}
	  </tr>
	<!--<tr><td colspan="2">&nbsp;</td></tr>-->
	</table>
	{/LOOP: STORIES}
	<br><Br>
    <div id="pages">
        <ul>
        	{LOOP: PAGES}
            IF("{PAGES.current}"=="1"){<li class="current">{PAGES.title}</li>{:IF}
            IF("{PAGES.current}"=="0"){<li><a href="{PAGES.link}">{PAGES.title}</a></li>{:IF}
            {/LOOP: PAGES}
        </ul>
    </div>
    <br />
    </td>
  </tr>
</table>
{OVERALL_FOOTER}